package com.example.myshop.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.*;

import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@EqualsAndHashCode(callSuper = false)
@TableName("t_order")
public class Order {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long oid;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long uid;
    private String recvName;
    private String recvPhone;
    private String recvProvince;
    private String recvCity;
    private String recvArea;
    private String recvAddress;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long totalPrice;
    private Integer status;
    private Date orderTime;
    private Date payTime;
    private String createdUser;
    private Date createdTime ;
    private String  modifiedUser;
    private Date modifiedTime;
}
